"""
题目12：判断101-200之间有多少个素数，并输出所有素数。
"""

# 自己写的


def su(first, final):
    new_list = []
    flag = 0
    for n in range(101, 200):
        x = int(n**0.5)
        for i in range(2, x+1):
            if n % i == 0:
                flag = 0
                break
            else:
                flag = 1
        if flag == 1:
            new_list.append(n)
    print(new_list)


su(101, 200)
